#!/usr/bin/env perl
use strict;
use warnings;

while(my $line = <STDIN>){
	my @cols = split(/\t/,$line);
	my $domain = $cols[4];
	my $url = $cols[5];
	my $whole = $domain.$url;

	##窗口的跳出
	if($url =~ m/\/wmh-auto-tab\?pvid=tc_auto/){
		next;
	}
	##大视野
	elsif($whole =~ m/^pic.auto.sohu.com\//){
		print("LargeView\t1\n");
	} 
	##文章
	elsif($whole =~ m/auto.sohu.com\/[0-9]{1,}\/n[0-9]{0,}.*?.shtml/){
		print("Article\t1\n");
	}
	##汽车首页
	elsif($whole =~ m/auto.sohu.com(\/$|\/\?|\/index.shtml)/){
		print("Index\t1\n");
	}
	##手机二手车buydetail.jsp
	elsif($whole =~ m/m.2sc.sohu.com\/buydetail.jsp/){
		print("mobileSecondCar_buydetails\t1\n");
	}
	##车型图片
	elsif($whole =~ m/db.auto.sohu.com\/model_[0-9]{0,}\/pic_[a-z]{0,}[0-9]{0,}.shtml/){
		print("model_pic\t1\n");
	}
	elsif($whole =~ m/db.auto.sohu.com\/[0-9]{1,}\/pic_car.shtml/){
		print("model_pic\t1\n");
	}
	##车模图
	elsif($whole =~ m/db.auto.sohu.com\/photo\/[0-9]{1,}\/pic_mod.shtml/){
		print("CarShowGirl\t1\n");
	}
	elsif($whole =~ m/db.auto.sohu.com\/photo\/group[0-9]{0,}.shtml/){
		print("CarShowGirl\t1\n");
	}
	##事件图
	elsif($whole =~ m/db.auto.sohu.com\/photo_[0-9]{0,}\/pic[0-9]{0,}.shtml/){
		print("EventPicture\t1\n");
	}
	##a00微型车
	elsif($whole =~ m/db.auto.sohu.com\/a00[\.|-]/){
		print("a00\t1\n");
	}
	##a0小型车
	elsif($whole =~ m/db.auto.sohu.com\/a0[\.|-]/){
		print("a0\t1\n");
	}
	##a紧凑型车
	elsif($whole =~ m/db.auto.sohu.com\/a[\.|-]/){
		print("a\t1\n");
	}
	##b中型车
	elsif($whole =~ m/db.auto.sohu.com\/b[\.|-]/){
		print("b\t1\n");
	}
	##c中大型车
	elsif($whole =~ m/db.auto.sohu.com\/c[\.|-]/){
		print("c\t1\n");
	}
	##luxury豪车
	elsif($whole =~ m/db.auto.sohu.com\/luxury[\.|-]/){
		print("luxury\t1\n");
	}
	##mpv
	elsif($whole =~ m/db.auto.sohu.com\/mpv[\.|-]/){
		print("mpv\t1\n");
	}
	##suv
	elsif($whole =~ m/db.auto.sohu.com\/suv[\.|-]/){
		print("suv\t1\n");
	}
	##sportscars
	elsif($whole =~ m/db.auto.sohu.com\/sportscars[\.|-]/){
		print("sportscars\t1\n");
	}
	##新能源
	elsif($whole =~ m/auto.sohu.com\/newenerge/){
		print("newenerge\t1\n");
	}
	##搜狗
	elsif($whole =~ m/auto.sohu.com\/s[0-9]{0,}\/sogou-auto/){
		print("sougou\t1\n");
	}
	####违章查询
	#搜狗
	elsif($whole =~ m/mobile.auto.sohu.com\/wzcx\/(mobile\/){0,1}sogou.at/){
		print("weizhang_sougou\t1\n");
	}
	#saa
	elsif($whole =~ /aa.auto.sohu.com\/wzcx\/get.at/){
		print("weizhang_saa\t1\n");
	}
	#360
	elsif($whole =~ /mobile.auto.sohu.com\/wzcx\/so360.at/){
		print("weizhang_360\t1\n");
	}
	#搜狐汽车
	elsif($whole =~ /mobile.auto.sohu.com\/wzcx\/mainpage.at/){
		print("weizhang_auto\t1\n");
	}
	#默认
	elsif($whole =~ /mobile.auto.sohu.com\/wzcx\/index.at/){
		print("weizhang_default\t1\n");
	}
	#首页
	elsif($whole =~ /auto.sohu.com\/s[0-9]{0,}\/weizhangchaxun.shtml/){
		print("weizhang_index\t1\n");
	}
	##dealer
	elsif($whole =~ /dealer.auto.sohu.com/){
		print("dealer\t1\n");
	}
	##购车
	elsif($whole =~ /auto.sohu.com\/goche/){
		print("goche\t1\n");
	}
	##车型对比
	elsif($whole =~ /db.auto.sohu.com\/pk-trim.shtml/){
		print("pk\t1\n");
	}
	##聚焦
	elsif($whole =~ /auto.sohu.com\/jujiao/){
		print("jujiao\t1\n");
	}
	##搜索车型
	elsif($whole =~ /db.auto.sohu.com\/searchterm.sip/){
		print("search\t1\n");
	}
	##车型页
	elsif($whole =~ /db.auto.sohu.com\/model_[0-9]{0,}\/$/){
		print("model\t1\n");
	}
	##二手车买车
	elsif($whole =~ /m.2sc.sohu.com\/buy.jsp/){
		print("2sc_buycar\t1\n");
	}
	##saa club
	elsif($whole =~ /saa.auto.sohu.com\/club/){
		print("saa_club\t1\n");
	}
	##价格
	elsif($whole =~ /db.auto.sohu.com\/price\//){
		print("price\t1\n");
	}
	##其他
	else{
		print($whole."\t1\n");
	}
}
